package com.ruoyi.supermarket.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.supermarket.mapper.XqyspayMapper;
import com.ruoyi.supermarket.domain.Xqyspay;
import com.ruoyi.supermarket.service.IXqyspayService;

/**
 * 详情应收Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-30
 */
@Service
public class XqyspayServiceImpl implements IXqyspayService 
{
    @Autowired
    private XqyspayMapper xqyspayMapper;

    /**
     * 查询详情应收
     * 
     * @param xqyspayId 详情应收主键
     * @return 详情应收
     */
    @Override
    public Xqyspay selectXqyspayByXqyspayId(Long xqyspayId)
    {
        return xqyspayMapper.selectXqyspayByXqyspayId(xqyspayId);
    }

    /**
     * 查询详情应收列表
     * 
     * @param xqyspay 详情应收
     * @return 详情应收
     */
    @Override
    public List<Xqyspay> selectXqyspayList(Xqyspay xqyspay)
    {
        return xqyspayMapper.selectXqyspayList(xqyspay);
    }

    /**
     * 新增详情应收
     * 
     * @param xqyspay 详情应收
     * @return 结果
     */
    @Override
    public int insertXqyspay(Xqyspay xqyspay)
    {
        return xqyspayMapper.insertXqyspay(xqyspay);
    }

    /**
     * 修改详情应收
     * 
     * @param xqyspay 详情应收
     * @return 结果
     */
    @Override
    public int updateXqyspay(Xqyspay xqyspay)
    {
        return xqyspayMapper.updateXqyspay(xqyspay);
    }

    /**
     * 批量删除详情应收
     * 
     * @param xqyspayIds 需要删除的详情应收主键
     * @return 结果
     */
    @Override
    public int deleteXqyspayByXqyspayIds(Long[] xqyspayIds)
    {
        return xqyspayMapper.deleteXqyspayByXqyspayIds(xqyspayIds);
    }

    /**
     * 删除详情应收信息
     * 
     * @param xqyspayId 详情应收主键
     * @return 结果
     */
    @Override
    public int deleteXqyspayByXqyspayId(Long xqyspayId)
    {
        return xqyspayMapper.deleteXqyspayByXqyspayId(xqyspayId);
    }
}
